<template>
	<base-image v-if="img" class="account-star size-5" :src="img" type="server" />
</template>
<script lang="ts" setup>
import { BaseImage } from '@/components/base'
import { computed } from 'vue'
import { useMemberStore } from '@/store'

const porps = defineProps({
	level: {
		type: Number
	}
})

const memberStore = useMemberStore()

const img = computed(() => memberStore.starList.find(({ level }) => porps.level === level)?.logo)
</script>
